export const getyear = (val)=>{
    const dat = new Date(val)
    let y = dat.getFullYear()
    let m =(dat.getMonth()+1+"").padStart(2,"0")
    let r = (dat.getDate()+"").padStart(2,"0")
    let h = (dat.getHours()+"").padStart(2,"0")
    let min = (dat.getMinutes()+"").padStart(2,"0")
    let s = (dat.getSeconds()+"").padStart(2,"0")
    let dates = `${y}-${m}-${r} ${h}:${min}:${s}`
    return dates

}